import ajax from './ajax.js';


const baseUrl = '/user'

export function login(data) {
	return ajax({
		url: `${baseUrl}/login`,
		method: 'post',
		'Content-Type': 'application/x-www-form-urlencoded',
		data: data,
	})
}

export function userInfo() {
	return ajax({
		url: `${baseUrl}`,
		method: 'get',
	})
}